package com.iespring.bean.common;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 *
 * @param
 * @return
 * @author 杨宇健
 * @since 2022/12/28 16:23
 */
@Data
public class BaseParam {

    Integer page;
    Integer limit;
    String sort;
    String order;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss") //post/get  url
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")  // json
    Date start;
    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    Date end;
}
